import request from '../utils/request';

// 获取热源数据
export function getHeatSourceCfg(data) {
  return request({
    url: '/heatSourceCfg/getHeatSourceCfg',
    method: 'GET',
    params: data,
  });
}
// 增加热源数据
export function addHeatSourceCfg(data) {
  return request({
    url: '/heatSourceCfg/addHeatSourceCfg',
    method: 'POST',
    data,
  });
}
// 删除热源数据
export function deleteHeatSourceCfg(data) {
  return request({
    url: '/heatSourceCfg/deleteHeatSourceCfg',
    method: 'POST',
    params: data,
  });
}
// 编辑热源数据
export function updateHeatSourceCfg(data) {
  return request({
    url: '/heatSourceCfg/updateHeatSourceCfg',
    method: 'POST',
    data,
  });
}
// 获取所有基线表内容
export function getAllBaseLine(data) {
  return request({
    url: '/getAllBaseLine',
    method: 'POST',
    params: data,
  });
}
// 新增基线表
export function addBaseLine(data) {
  return request({
    url: '/addBaseLine',
    method: 'POST',
    data,
  });
}
// 获取基线详情
export function getBaseLineDetail(data) {
  return request({
    url: '/getBaseLineDetail',
    method: 'GET',
    params: data,
  });
}
// 新增基线表明细
export function addBaseLineDetail(data) {
  return request({
    url: '/addBaseLineDetail',
    method: 'POST',
    data,
  });
}
// 删除基线表明细
export function deleteBaseLineDetail(data) {
  return request({
    url: '/deleteBaseLineDetail',
    method: 'POST',
    data,
  });
}
